package com.xinzhi.savingpot.userinfo.controller;

import com.aliyuncs.exceptions.ClientException;
import com.xinzhi.savingpot.userinfo.service.impl.UpdatePasswordServiceImpl;
import com.xinzhi.savingpot.util.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/update")
@Api("发送短信")
@CrossOrigin

public class UpdatePasswordcontroller {
    @Autowired
    private UpdatePasswordServiceImpl updatePasswordService;
    @GetMapping("/updatepassword")
    @ApiOperation("修改密码")
    public BaseResponse Register(@RequestParam("phone") String phone,@RequestParam("password") String password,@RequestParam("code") String code) {
        return updatePasswordService.chaseps(phone,password,code);

    }
}
